package rs.frenjoynet.core.ui.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.ScopeType;
import cz.atria.common.lang.Util;

import java.io.Serializable;


/**
 * Created by IntelliJ IDEA.
 * User: ppopovic
 * Date: 28.10.2009.
 * Time: 15.40.08
 * To change this template use File | Settings | File Templates.
 */
@Name ("welcomeSessionBean")
@Scope (ScopeType.SESSION)
public class WelcomeSessionBean implements Serializable
{
	private String centerContentView;
	private String jumpToPage;
	private Integer informationIdForView;
	public static final String DEFAULT_TITTLE = "YouConnect";
	private String tittle;

	public String getCenterContentView()
	{
		return centerContentView;
	}

	public void setCenterContentView(String centerContentView)
	{

		this.centerContentView = centerContentView;
	}

	public String getJumpToPage()
	{
		if (Util.isEmpty(jumpToPage))
			jumpToPage = "home.jsf";
		return jumpToPage;
	}

	public void setJumpToPage(String jumpToPage)
	{
		this.jumpToPage = jumpToPage;
	}

	public Integer getInformationIdForView()
	{
		return informationIdForView;
	}

	public void setInformationIdForView(Integer informationIdForView)
	{
		this.informationIdForView = informationIdForView;
	}

	public String getTittle()
	{
		if (Util.isEmpty(tittle))
			tittle = DEFAULT_TITTLE + " | Welcome";
		return tittle;
	}

	public void setTittle(String tittle)
	{
		this.tittle = tittle;
	}
}
